package com.gupao.demo.annotation.configuration;import com.gupao.demo.annotation.configuration.MyConfig;import com.gupao.project.entity.Person;import org.junit.Test;import org.springframework.context.ApplicationContext;import org.springframework.context.annotation.AnnotationConfigApplicationContext;public class MyTest {    @Test    public void test(){        ApplicationContext app = new AnnotationConfigApplicationContext(MyConfig.class);        Object person = app.getBean("person1");        Person person1 = app.getBean(Person.class);        System.out.println(person == person1);    }}